/**
 * Created by Lcp on 2017/12/20.
 */
var h = $(window).height(),
    type = 0,
    nowIndexs = 0,
    imgNum = $('#allImg img').length,
    imgW = $('.infoR').width(),
    key = '',
    afkssj = '',
    afjssj = '',//案发起止时间
    flag = true,//条件关闭开启判断
    node = '',//当前节点
    layoutIndex = 0,//弹出框索引
    dataKind = '0',//图片文字切换
    ajlxCode = [],//案件类型code
    nums =  Math.floor((h - 480) / 133);//请求条数
$(function(){
    $('.row-hoof').css({height: h, backgroundColor: '#d5dbe7',overflow: 'hidden'});
    $('.containers').css({height: h - 20 + 'px'});
    $('.noContent').css({height: h - 400 + 'px'});
    lengthDeail();
    Echarts();
    //日期
    laydate.render({
        elem: '#afsj',
        type: 'datetime',
        range: '~',
        theme: 'molv',//主题
        min: '1900-1-1 00:00:00',
        max: 1,
        format: 'yyyy-MM-dd HH:mm:ss',
        done: function(value, date, endDate){
            if(value != ''){
                afkssj = value.split('~')[0];
                afjssj = value.split('~')[1];
            }else{
                afkssj = '';
                afjssj = '';
            }
        }
    });

    $(window).resize(function(){
        h = $(window).height();
        $('.row-hoof').css({height: h, backgroundColor: '#d5dbe7',overflow: 'hidden'});
        $('.containers').css({height: h - 20 + 'px'});
        $('.noContent').css({height: h - 400 + 'px'});
        Echarts();
    })
})
//案件类型数据
$.ajax({
    type: 'get',
    url: baseUrls + 'dict/ajlx',
    beforeSend: function(){
        Loading();
    },
    success: function(response){
        closeLoading();
        if(response.responseCode == '1000'){
            $('.caseList-hoof').html('<span class="Selected" onclick="listDetail(this)">全部</span>');
            if(response.content.length > 0){
                ajlxCode = response.content;
                for(var i = 0; i< response.content.length; i++){
                    $('.caseList-hoof').append('<span class="" onclick="listDetail(this)">'+ nulls(response.content[i].name) +'</span>');
                }
            }
        }else{
            Msg('案件类型获取失败！');
        }
    },
    error: function(){
        closeLoading();
        Msg('案件类型获取失败！');
    }
})
//侵入方式数据
$.ajax({
    type: 'get',
    url: baseUrls + 'xkdl',
    data: {dmx: '侵入方式'},
    beforeSend: function(){
        Loading();
    },
    success: function(response){
        closeLoading();
        if(response.responseCode == '1000'){
            $('.invasion-hoof').html('<span class="Selected" onclick="listDetail(this)">全部</span>');
            if(response.content.length > 0){
                for(var i = 0; i< response.content.length; i++){
                    $('.invasion-hoof').append('<span class="" onclick="listDetail(this)">'+ nulls(response.content[i].dmxs) +'</span>');
                }
            }
        }else{
            Msg('侵入方式获取失败！');
        }
    },
    error: function(){
        closeLoading();
        Msg('侵入方式获取失败！');
    }
})

$('.infoR').mouseenter(function(){
    if(imgNum > 1){
        $('.arrow').fadeIn();
    }
});
$('.infoR').mouseleave(function(){
    $('.arrow').fadeOut();
})
//处理更多显隐
function lengthDeail(){
    // 搜索条件
    for(var i=0;i<=$('.screen ul').length;i++){
        if($('.screen ul').eq(i).children().eq(1).find('div').height() > 40){
            $('.screen ul').eq(i).children().eq(2).append('<span onclick="seeList(this)"><span class="moreSpan">展开</span><img src="layer/img/right.png" onerror="nofind(this)"></span>');
        }else{
            $('.screen ul').eq(i).children().eq(2).find('span').remove();
        }
    }
}

function nofind(item){
    item.src = 'common/img/nothing.png';
    item.onerror = null;
}

function showDetail(uniq){
    layer.open({
        type: 2,
        area: ['90%', h * 0.9 + 'px'],
        fixed: false, //不固定
        maxmin: false,
        content: 'layer/layer.html?' + uniq + '&' + $('#userId').val()
    });

}
//关闭搜索条件
function allClose(item){
    if(flag){
        $('.contentList').css({borderLeft: 'none'});
        $('#mation').slideUp();
        $(item).html('<span>全部展起</span><img src="layer/img/right.png" onerror="nofind(this)">');
        flag = false;
        if(dataKind == '0'){
            nums =  Math.floor((h - 130) / 133);//请求条数
        }else{
            nums =  Math.floor((h - 130) / 220);//请求条数
        }
    }else{
        $('.contentList').css({borderLeft: '5px solid #3b5998'});
        $('#mation').slideDown();
        $(item).html('<span>全部收起</span><img src="layer/img/down.png" onerror="nofind(this)">');
        flag = true;
        if(dataKind == '0'){
            nums =  Math.floor((h - 480) / 133);//请求条数
        }else{
            nums =  Math.floor((h - 480) / 220);//请求条数
        }
    }
    judge();
}
//展开收起
function seeList(item){
    if($(item).parents('ul').height() <= 34){
        $(item).parents('ul').children('li').eq(1).animate({height: $(item).parents('ul').find('.li_div').height()},500);
        $(item).html('<span class="moreSpan">收起</span><img src="layer/img/down.png" onerror="nofind(this)">');
    }else{
        $(item).parents('ul').children('li').eq(1).animate({height:'34px'},500);
        $(item).html('<span class="moreSpan">展开</span><img src="layer/img/right.png" onerror="nofind(this)">');
    }
}
//二级弹出框
function listDetail(item){
    $(item).toggleClass('Selected');
    if($(item).index() == 0){
        $(item).addClass('Selected');
        $(item).parent().find('b').remove();
        $(item).siblings().removeClass('Selected');
    }else{
        var Index = $(item).parents('ul').index();
        node = $(item).parents('ul').index() + ',' + $(item).index();
        if($(item).parent().find('.Selected').length > 0 ){
            $(item).parent().find('span').eq(0).removeClass('Selected');
        }else{
            $(item).parent().find('span').eq(0).addClass('Selected');
        }
        if($(item).hasClass('Selected') && $(item).index() > 0){
            //获取案件类型详情
            if(Index == 4 && $(item).index() > 0){
                var index = $(item).html().indexOf('<'),
                    str = $(item).html();
                if(index > 0){
                    str = $(item).html().substring(0,index);
                }
                $.ajax({
                    type: 'get',
                    url: baseUrls + 'dict/ajlb',
                    data: {code: ajlxCode[$(item).index() - 1].code},
                    beforeSend: function(){
                        Loading();
                    },
                    success: function(response){
                        closeLoading();
                        if(response.responseCode == '1000'){
                            if(response.content.length > 0){
                                var Str = '',
                                    heightBox = '',
                                    length = '';
                                for(var i = 0; i < response.content.length; i++){
                                    Str += '<option>'+ nulls(response.content[i].name) +''
                                }
                                heightBox = response.content.length > 10 ? 10 * 26 + 180 : response.content.length * 26 + 180;
                                length = response.content.length > 10 ? 10 : 'auto';
                                layer.open({
                                    title: str,
                                    type: 1,
                                    skin: 'layui-layer-rim', //加上边框
                                    area: ['500px', heightBox + 'px'], //宽高
                                    scrollbar: false,
                                    move: false,
                                    content: '<select  class="selectpicker " multiple data-live-search="true">'+ Str +'</select>',
                                    success: function (layero, index) {
                                        layoutIndex = index;
                                        $('.selectpicker').selectpicker({
                                            noneSelectedText: '请选择',
                                            selectAllText: '全选',
                                            deselectAllText: '取消全选',
                                            countSelectedText:"已选中{0}项",
                                            selectedTextFormat:"count > 3",
                                            actionsBox: true,
                                            width: '100%',
                                            size: length,
                                        });
                                    },
                                    cancel: function(index, layero){
                                        var ajdl = $(item).html();
                                        if($('.selectpicker').selectpicker('val').length > 0){
                                            var con = $('.selectpicker').selectpicker('val').join(',');
                                            if($('.selectpicker').selectpicker('val').length > 3){
                                                if($('.selectpicker').selectpicker('val').length == response.content.length){
                                                    $(item).append('<b>已全选<input type="hidden" class="fileName" value="'+ ajdl +'"/></b>');
                                                }else{
                                                    $(item).append('<b>已选中' + $('.selectpicker').selectpicker('val').length + '项<input type="hidden" class="fileName" value="'+ con +'"></b>');
                                                }
                                            }else{
                                                $(item).append('<b>'+ con +'<input type="hidden" class="fileName" value="'+ con +'"></b>');
                                            }
                                        }else{
                                            $(item).append('<b><input type="hidden" class="fileName" value="'+ ajdl +'"/></b>');
                                        }
                                        $('.selectpicker').selectpicker('destroy');
                                        lengthDeail();
                                    }
                                });
                            }else{
                                Msg( str + '暂无数据');
                            }
                        }else{
                            Msg( str + '获取失败！');
                        }
                    },
                    error: function(){
                        closeLoading();
                        Msg(str + '获取失败！');
                    }
                })
            }
            //获取侵入方式
            if(Index == 5 && $(item).index() > 0){
                var index = $(item).html().indexOf('<'),
                    str = $(item).html();
                if(index > 0){
                    str = $(item).html().substring(0,index);
                }
                $.ajax({
                    type: 'get',
                    url: baseUrls + 'xkxl',
                    data: {dmxs: str},
                    beforeSend: function(){
                        Loading();
                    },
                    success: function(response){
                        closeLoading();
                        if(response.responseCode == '1000'){
                            if(response.content.length > 1){
                                var Str = '',
                                    heightBox = '',
                                    length = '';
                                for(var i = 0; i < response.content.length; i++){
                                    Str += '<option>'+ nulls(response.content[i].dmxt) +'</option>'
                                }
                                heightBox = response.content.length > 10 ? 10 * 26 + 180 : response.content.length * 26 + 180;
                                length = response.content.length > 10 ? 10 : 'auto';
                                layer.open({
                                    title: str,
                                    type: 1,
                                    skin: 'layui-layer-rim', //加上边框
                                    area: ['500px', heightBox + 'px'], //宽高
                                    scrollbar: false,
                                    move: false,
                                    content: '<select  class="selectpicker " multiple data-live-search="true">'+ Str +'</select>',
                                    success: function (layero, index) {
                                        layoutIndex = index;
                                        $('.selectpicker').selectpicker({
                                            noneSelectedText: '请选择',
                                            selectAllText: '全选',
                                            deselectAllText: '取消全选',
                                            countSelectedText:"已选中{0}项",
                                            selectedTextFormat:"count > 3",
                                            actionsBox: true,
                                            width: '100%',
                                            size: length
                                        });
                                    },
                                    cancel: function(index, layero){
                                        var ajdl = $(item).html();
                                        if($('.selectpicker').selectpicker('val').length > 0){
                                            var con = $('.selectpicker').selectpicker('val').join(',');
                                            if($('.selectpicker').selectpicker('val').length > 3){
                                                if($('.selectpicker').selectpicker('val').length == response.content.length){
                                                    $(item).append('<b>已全选<input type="hidden" class="fileName" value="'+ ajdl +'"/></b>');
                                                }else{
                                                    $(item).append('<b>已选中' + $('.selectpicker').selectpicker('val').length + '项<input type="hidden" class="fileName" value="'+ con +'"></b>');
                                                }
                                            }else{
                                                $(item).append('<b>'+ con +'<input type="hidden" class="fileName" value="'+ con +'"></b>');
                                            }
                                        }else{
                                            $(item).append('<b><input type="hidden" class="fileName" value="'+ ajdl +'"/></b>');
                                        }
                                        $('.selectpicker').selectpicker('destroy');
                                        lengthDeail();
                                    }
                                });
                            }else{
                                Msg( str + '暂无数据');
                            }
                        }else{
                            Msg( str + '获取失败！');
                        }
                    },
                    error: function(){
                        closeLoading();
                        Msg( str + '获取失败！');
                    }
                })
            }
        }else{
            $(item).find('b').remove();
        }
        if($(item).index() == 0){
            $(item).parent().find('b').remove();
            $(item).addClass('selected').siblings().removeClass('selected');
        }
    }
    lengthDeail();
}
//研判
function judge(){
    var ajlb = [],//案件大类小类
        ssxq = [],//所属辖区
        qrfs = [];//侵入大类小类方式
    if($('#afsj').val().length > 0){
    }else{
        if($('.advancedHours option:selected').val() != 0 || $('.delayHours option:selected').val() != 0){
            Msg('请选择起止时间！');
            return false;
        }
    }

    //案件大类小类
    for(var i = 0; i < $('.caseKind span').length; i++){
        if($('.caseKind span').eq(i).hasClass('Selected') && i != 0){
            if($('.caseKind span').eq(i).find('.fileName').val() != undefined){
                var caseKind =  $('.caseKind span').eq(i).find('.fileName').val().split(',');
                for(var j = 0; j < caseKind.length; j++){
                    ajlb.push(caseKind[j]);
                }
            }else{
                ajlb.push($('.caseKind span').eq(i).find('.fileName').val());
            }
        }
    }
    //侵入方式
    for(var i = 0; i < $('.instrionMode span').length; i++){
        if($('.instrionMode span').eq(i).hasClass('Selected') && i != 0){
            if($('.instrionMode span').eq(i).find('.fileName').val() != undefined){
                var instrionMode =  $('.instrionMode span').eq(i).find('.fileName').val().split(',');
                for(var j = 0; j < instrionMode.length; j++){
                    qrfs.push(instrionMode[j]);
                }
            }else{
                qrfs.push($('.instrionMode span').eq(i).find('.fileName').val());
            }
        }
    }
    //所属辖区
    for(var i = 0; i < $('.ssxq span').length; i++){
        if($('.ssxq span').eq(i).hasClass('selected') && i != 0){
            ssxq.push($('.ssxq span').eq(i).html());
        }
    }
    $.ajax({
        type: 'post',
        url: baseUrls + 'analysis/manualResult',
        data:{
            ajbh: $.trim($('#ajbh').val()),
            beginTime: afkssj,
            endTime: afjssj,
            advancedHours: $('.advancedHours option:selected').val(),
            delayHours: $('.delayHours option:selected').val(),
            zagj: $.trim($('#zagj').val()),
            ssxq: JSON.stringify(ssxq),
            ajlb: JSON.stringify(ajlb),
            qrfs: JSON.stringify(qrfs),
            pageSize: nums,
            pageIndex: 1,
            type: dataKind
        },
        beforeSend: function(){
            Loading();
        },
        success: function(response){
            closeLoading();
            if(response.responseCode == '1000'){
                if(response.content.list.length > 0){
                    $('.content').css('display','block');
                    $('.list').html('');
                    $('.noContent').css({display: 'none'});
                    $('.total').html('为您找到相关结果<em>'+ response.content.list.length +'</em>条');
                    for(var i = 0; i < response.content.list.length; i++){
                        var timeSection = nulls(response.content.list[i].afkssj) + '&nbsp&nbsp~&nbsp&nbsp' + nulls(response.content.list[i].afjssj);
                        if(nulls(response.content.list[i].afkssj) == '无' &&  nulls(response.content.list[i].afjssj) == '无'){
                            timeSection = '无';
                        }
                        if (dataKind == '0') {
                            $('.list').append('<li><a href="#" class="title caseTitle" onclick="showDetail(\'' + response.content.list[i].ajbh + '\')">' + nulls(response.content.list[i].ajmc) + '</a><h6 class="sTitle">案件编号:&nbsp&nbsp' + nulls(response.content.list[i].ajbh) + ';&nbsp&nbsp时间:&nbsp&nbsp' + timeSection + '</h6><div class="introF"><p class="intro"><span class="dataKind">简要案情：</span>&nbsp&nbsp' + nulls(response.content.list[i].jyaq) + '</p><p class="intro"><span class="dataKind">相似案件：</span>&nbsp&nbsp<span  class="sameSpan">【相似度 '+ nulls(response.content.list[i].xsdz) +'%】</span>&nbsp&nbsp' + nulls(response.content.list[i].ajfxgc) + '</p></div></li>');
                        } else {
                            $('.list').append('<li><a href="#" class="title detailTitle" onclick="showDetail(\'' + nulls(response.content.list[i].ajbh) + '\')">' + nulls(response.content.list[i].ajmc) + '</a><h6 class="sTitle">案件编号:&nbsp&nbsp' + nulls(response.content.list[i].ajbh) + ';&nbsp&nbsp时间:&nbsp&nbsp' + timeSection + '</h6><div class="intros"><div class="left"><img src="' + response.content.list[i].wllj + '" onerror="nofind(this)"></div><div class="right"><div class="introF"><p class="intro"><span class="dataKind">简要案情：</span>&nbsp&nbsp' + nulls(response.content.list[i].jyaq) + '</p><p class="intro"><span class="dataKind">相似案件：</span>&nbsp&nbsp<span  class="sameSpan">【相似度 '+ nulls(response.content.list[i].xsdz) +'%】</span>&nbsp&nbsp' + nulls(response.content.list[i].ajfxgc) + '</p></div></div></div></li>');
                        }
                    }
                    $('#demo_pag1').bs_pagination({
                        totalPages: response.content.pages,
                        visiblePageLinks: 10,
                        currentPage: response.content.pageNum,
                        showGoToPage: false,
                        showRowsPerPage: false,
                        showRowsInfo: false,
                        showRowsDefaultInfo: false,
                        navListContainerClass: 'col-xs-12',
                        onChangePage: function (event, data) {
                            $.ajax({
                                type: 'post',
                                url: baseUrls + 'analysis/manualResult',
                                data: {
                                    ajbh: $.trim($('#ajbh').val()),
                                    beginTime: afkssj,
                                    endTime: afjssj,
                                    advancedHours: $('.advancedHours option:selected').val(),
                                    delayHours: $('.delayHours option:selected').val(),
                                    zagj: $.trim($('#zagj').val()),
                                    ssxq: JSON.stringify(ssxq),
                                    ajlb: JSON.stringify(ajlb),
                                    qrfs: JSON.stringify(qrfs),
                                    pageSize: nums,
                                    pageIndex: data.currentPage,
                                    type: dataKind
                                },
                                beforeSend: function () {
                                    Loading();
                                },
                                success: function (response) {
                                    closeLoading();
                                    if (response.responseCode == '1000') {
                                        if (response.content.list.length > 0) {
                                            $('.content').css('display','block');
                                            $('.list').html('');
                                            $('.noContent').css({display: 'none'});
                                            $('.total').html('为您找到相关结果<em>' + response.content.list.length + '</em>条');
                                            for (var i = 0; i < response.content.list.length; i++) {
                                                var timeSection = nulls(response.content.list[i].afkssj) + '&nbsp&nbsp~&nbsp&nbsp' + nulls(response.content.list[i].afjssj);
                                                if (nulls(response.content.list[i].afkssj) == '无' && nulls(response.content.list[i].afjssj) == '无') {
                                                    timeSection = '无';
                                                }
                                                if (dataKind == '0') {
                                                    $('.list').append('<li><a href="#" class="title caseTitle" onclick="showDetail(\'' + response.content.list[i].ajbh + '\')">' + nulls(response.content.list[i].ajmc) + '</a><h6 class="sTitle">案件编号:&nbsp&nbsp' + nulls(response.content.list[i].ajbh) + ';&nbsp&nbsp时间:&nbsp&nbsp' + timeSection + '</h6><div class="introF"><p class="intro"><span class="dataKind">简要案情：</span>&nbsp&nbsp' + nulls(response.content.list[i].jyaq) + '</p><p class="intro"><span class="dataKind">相似案件：</span>&nbsp&nbsp<span class="sameSpan">【相似度 '+ nulls(response.content.list[i].xsdz) +'%】</span>&nbsp&nbsp' + nulls(response.content.list[i].ajfxgc) + '</p></div></li>');
                                                } else {
                                                    $('.list').append('<li><a href="#" class="title detailTitle" onclick="showDetail(\'' + nulls(response.content.list[i].ajbh) + '\')">' + nulls(response.content.list[i].ajmc) + '</a><h6 class="sTitle">案件编号:&nbsp&nbsp' + nulls(response.content.list[i].ajbh) + ';&nbsp&nbsp时间:&nbsp&nbsp' + timeSection + '</h6><div class="intros"><div class="left"><img src="' + response.content.list[i].wllj + '" onerror="nofind(this)"></div><div class="right"><div class="introF"><p class="intro"><span class="dataKind">简要案情：</span>&nbsp&nbsp' + nulls(response.content.list[i].jyaq) + '</p><p class="intro"><span class="dataKind">相似案件：</span>&nbsp&nbsp<span  class="sameSpan">【相似度 '+ nulls(response.content.list[i].xsdz) +'%】</span>&nbsp&nbsp' + nulls(response.content.list[i].ajfxgc) + '</p></div></div></div></li>');
                                                }
                                            }
                                        }else{
                                            $('.content').css('display','none');
                                            $('.noContent').css({display: 'block'});
                                            Msg('未查到数据！');
                                        }
                                    }else{
                                        $('.content').css('display','none');
                                        $('.noContent').css({display: 'block'});
                                        Msg();
                                    }
                                },
                                error: function () {
                                    closeLoading();
                                    $('.noContent').css({display: 'block'});
                                    Msg();
                                }
                            })
                        }
                    })
                }else{
                    $('.content').css('display','none');
                    $('.noContent').css({display: 'block'});
                    Msg('未查到数据！');
                }
            } else{
                $('.content').css('display','none');
                $('.noContent').css({display: 'block'});
                Msg();
            }
        },
        error: function(){
            closeLoading();
            $('.noContent').css({display: 'block'});
            Msg();
        }
    })
}
//研判结果展示 文字 图片
function changeSearch(item) {
    var Index = $(item).index();
    if ($(item).find('span').hasClass('wordColor')) {
        Msg('当前为选中状态！');
    } else {
        if (Index == 0) {
            $(item).find('img').attr('src', 'handJudge/img/word_2.png');
            $(item).find('span').addClass('wordColor');
            $(item).siblings().find('img').attr('src', 'handJudge/img/image_1.png');
            $(item).siblings().find('span').removeClass('wordColor');
            dataKind = '0';
            if(flag == true){
                nums =  Math.floor((h - 480) / 133);//请求条数
            }else{
                nums =  Math.floor((h - 130) / 133);//请求条数
            }
        }else{
            $(item).find('img').attr('src', 'handJudge/img/image_2.png');
            $(item).find('span').addClass('wordColor');
            $(item).siblings().find('img').attr('src', 'handJudge/img/word_1.png');
            $(item).siblings().find('span').removeClass('wordColor');
            dataKind = '1';
            if(flag == true){
                nums =  Math.floor((h - 480) / 220);//请求条数
            }else{
                nums =  Math.floor((h - 130) / 220);//请求条数
            }
        }
        judge();
    }
}

//echarts
function Echarts(){
    var noContent = echarts.init(document.getElementById('noContent'));
    function createRandomItemStyle() {
        return {
            normal: {
                color: 'rgb(' + [
                    Math.round(Math.random() * 160),
                    Math.round(Math.random() * 160),
                    Math.round(Math.random() * 160)
                ].join(',') + ')'
            }
        };
    }
    var option = {
        tooltip: {
            show: false
        },
        series: [{
            name: '',
            type: 'wordCloud',
            size: ['80%', '80%'],
            textRotation : [0, 45, 90, -45],
            textPadding: 0,
            autoSize: {
                enable: true,
                minSize: 14
            },
            data: [
                {
                    name: "诈骗案",
                    value: 10000,
                    itemStyle: {
                        normal: {
                            color: 'black'
                        }
                    }
                },
                {
                    name: "相似度",
                    value: 6181,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "线索统计",
                    value: 4386,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "手动研判",
                    value: 4055,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "常住人口",
                    value: 2467,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "抢夺案",
                    value: 2244,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "其他",
                    value: 1898,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "简要案情",
                    value: 1484,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "相似案件",
                    value: 1112,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "火车站",
                    value: 965,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "相似案件",
                    value: 847,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "其他",
                    value: 582,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "抢劫案",
                    value: 555,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "抢盗",
                    value: 550,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "吸毒",
                    value: 462,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "强奸",
                    value: 366,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "诈骗",
                    value: 360,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "火车站",
                    value: 282,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "相似度",
                    value: 273,
                    itemStyle: createRandomItemStyle()
                },
                {
                    name: "火车站",
                    value: 265,
                    itemStyle: createRandomItemStyle()
                }
            ]
        }]
    };
    noContent.setOption(option);
}
